<template>
	<el-dialog :visible.sync="visible" title="选择文件目录" :close-on-click-modal="false" :close-on-press-escape="false"
		@close="close">
		<!-- <el-form :model="dataForm" :rules="dataRule" ref="dataForm" @keyup.enter.native="dataFormSubmitHandle()"
			label-width="120px">
		</el-form> -->
		<div style="margin-top: 15px">
			<input type="file" name="copy" id="copy" multiple @change="inputChange">
		</div>
	</el-dialog>
</template>

<script>
import debounce from 'lodash/debounce'
import Cookies from 'js-cookie'

export default {
	data() {
		return {
			visible: false,
			textarea: '',
		}
	},
	mounted() {

	},
	methods: {
		init() {
			this.visible = true
		},
		inputChange(file) {
			let filesArr = file.target.files;
			let fileReader = new FileReader();
			fileReader.onload = () => {
				// 这里输出出来的就是 buffer 对象
			}
			fileReader.readAsArrayBuffer(filesArr[0]);
		},
		close() {

		}
	}
}
</script>
<style scoped></style>
